<?php
namespace app\index\controller;

use think\Config;
use think\Controller;
use think\Request;

class About extends Base
{

    //about各页面
	public function index(Request $request)
	{
	    $action = $request->param('action','gsjj');
        $info = \CommonHelper::getAbout('about',$action);
	    if (empty($info)){
	        return redirect('/');
        }
        $this->assign('info',$info);
    	return $this->fetch();
	}

    public function honor(Request $request){
        $action = $request->param('action','qyzz');
        $info = \CommonHelper::getAbout('about',$action);
        if (empty($info)){
            return redirect('/');
        }
        $this->assign('info',$info);
        return $this->fetch('honor');
    }

	public function contact(){
        return $this->fetch();

    }

    public function map(){
	    $config = [
	        'point' =>'116.404556,39.915488',
	        'point2' =>'116.404556|39.915488',
	        'title' =>'乃至有限公司',
            'content'=>'集团电话：0513-87946666<br/>集团传真：0513-87946189<br/>邮箱：jsjzjt@jsjzjt.cn<br/>地址：江苏省如皋市吴窑镇鲁班路18号',
        ];
	    $this->assign('config',$config);
        return $this->fetch();
    }


}
